<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dialog</title>

<link  href="../../../../themes/default/ui.css" type="text/css" rel="stylesheet" />
<link  href="../../../../themes/common/icon.css" type="text/css" rel="stylesheet" />

<script src="../../../../scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="../ui.dialog.js"></script>
<link type="text/css" href="../ui.dialog.css" rel="stylesheet" />

<link rel="STYLESHEET" type="text/css" href="../../button/button.css"/>
<script type="text/javascript" src="../../button/ui.button.js"></script>

<!-- 换肤 -->
	<script type="text/javascript" src="../../../theme_cookie.js"></script>

<script type="text/javascript">
function open1()
{

	var dialog = $.dialog({
			Title:'创建其它按钮',
			URL:'test.html',
			Width:500,
			Height:200,
			buttons:[
			  {id:'next',label:'下一步',event:function(){
				    var doc=dialog.innerFrame.contentWindow.document ;
					doc.open();
					doc.write('<html><body>进入了下一步</body></html>') ;
					doc.close();
					dialog.removeButton(this);
			  }}  
			]
		}).show() ;
}
</script>

</head>
<body>

  <div class="item">
    <input type="button" id="a" value="带按钮的窗口" onclick="open1()"/>
</div>
</body>
</html>